package achi.community.irla.icefaces;

import com.icesoft.faces.context.effects.Effect;
import com.icesoft.faces.context.effects.Highlight;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.event.ActionEvent;

/**
 * <p>The DragDropBean handles DragEvent listeners for the Drag and Drop
 * tutorial.</p>
 */
@ManagedBean
@RequestScoped
//@SessionScoped 
public class EffectBean implements Serializable {

    //private Highlight highlightGreen = new Highlight("#09ad21");
    
    private Effect currentEffectt1 = new Highlight("#09ad21");
    private Effect currentEffectt2 = new Highlight("#09ad21");
    private Effect currentEffectt3 = new Highlight("#09ad21");
    private Effect currentEffectt4 = new Highlight("#09ad21");
    private Effect currentEffectt5 = new Highlight("#09ad21");

    private String test;

    public Effect getCurrentEffectt1() {
        return currentEffectt1;
    }

    public void setCurrentEffectt1(Effect currentEffectt1) {
        this.currentEffectt1 = currentEffectt1;
    }

    public Effect getCurrentEffectt2() {
        return currentEffectt2;
    }

    public void setCurrentEffectt2(Effect currentEffectt2) {
        this.currentEffectt2 = currentEffectt2;
    }

    public Effect getCurrentEffectt3() {
        return currentEffectt3;
    }

    public void setCurrentEffectt3(Effect currentEffectt3) {
        this.currentEffectt3 = currentEffectt3;
    }

    public Effect getCurrentEffectt4() {
        return currentEffectt4;
    }

    public void setCurrentEffectt4(Effect currentEffectt4) {
        this.currentEffectt4 = currentEffectt4;
    }

    public Effect getCurrentEffectt5() {
        return currentEffectt5;
    }

    public void setCurrentEffectt5(Effect currentEffectt5) {
        this.currentEffectt5 = currentEffectt5;
    }

    public void fireEffect(ActionEvent event) {
            currentEffectt1.setFired(true);
            currentEffectt2.setFired(true);
            currentEffectt3.setFired(true);
            currentEffectt4.setFired(true);
            currentEffectt5.setFired(true);
    }

    public String getTest() {
        System.out.println("getTest():"+this);
        return "background-color: red;";
    }

    //public void setTest(String test) {
    //    this.test = test;
   // }
}
